# Author:  Simon Amor
# EMail:   simon@foobar.net
# WWW:     http://www.foobar.net/~simon/

# Makefile for netlib. Modify as appropriate.
# Tested on Linux and HPUX
# Requires ANSI compiler

# Directory tree for netlib
NETLIB = ..

# Linux, DEC
CC = gcc
CFLAGS = -ansi -Wall -I../include -L../lib

# HPUX
#CC = cc
#CFLAGS = -Ae

INCS = -I${NETLIB}/include
LIBS = -L${NETLIB}/lib

all:
	@echo "To compile filename.c, use make filename"

.c:
	${CC} ${CFLAGS} ${LIBS} ${INCS} -o $@ $@.c -lnet

clean:
	rm -f *.o 
